//
//  UserManager.h
//  MSHD
//
//  Created by HCreater on 2017/12/7.
//  Copyright © 2017年 HCreater. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "UserData.h"
#import "UserInfoData.h"

@interface UserManager : NSObject

MHSingletonH(UserManager);

extern NSString* UM_appLanguage;

@property (nonatomic, readonly, copy) UserData* userData;

@property (nonatomic, readonly, assign) NSInteger unReadMsgNum;

- (void)reupdate;
- (void)clean;

- (void)saveUserData:(UserData*)userData;

- (BOOL)isLogined;
- (BOOL)isHaveUserToken;
- (void)logonOut;

- (void)updateUserInfo;

- (void)cleanUnReadMsg;

@end
